<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<jsp:include page="../header.jsp" />
<div id="content">
	<div id="topstory" class="box">
		<h1>
			<fmt:message key="umgr.user.login" />
		</h1>
	</div>
	<div class="padding">
		<c:if test="${not empty param.error}">
			<div class="ui-widget">
				<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
					<p>
						<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> <strong>Alert:</strong>
						<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
					</p>
				</div>
			</div>
		</c:if>
		<form name="f" action="<c:url value="j_spring_security_check"/>" method="POST">
			<table border="0" cellspacing="5" cellpadding="0" width="100%">
				<tr>
					<td width="25%"></td>
					<td width="35%"></td>
					<td width="15%"></td>
					<td width="35%"></td>
				</tr>
				<tr>
					<td>User:</td>
					<td><input type="text" name="j_username"
						value="<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>"
					/>
					</td>
					<td colspan="2"></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><input type="password" name="j_password"></td>
					<td colspan="2"></td>
				</tr>
				<tr>
					<td><input name="submit" type="submit"></td>
					<td><input name="reset" type="reset"></td>
					<td colspan="2"></td>
				</tr>
				<tr>
					<td colspan="2"><input id="remember_me" name="_spring_security_remember_me" type="checkbox" value="Remember me" /></td>
					<td colspan="2"></td>
				</tr>
			</table>
		</form>
	</div>
	<!-- /padding -->
</div>
<!-- /content -->
<jsp:include page="../side-menu.jsp" />
<jsp:include page="../foother.jsp" />